package org.nokatag.code;

import java.util.Iterator;

public class SimpleTextRenderer extends AbstractTextRenderer
{

    public SimpleTextRenderer()
    {
    }

    protected void arrangeCharacters(int width, int height, TextString ts)
    {
        double x = leftMargin;
        for(Iterator i$ = ts.getCharacters().iterator(); i$.hasNext();)
        {
            TextCharacter tc = (TextCharacter)i$.next();
            double y = (double)topMargin + ((double)height + tc.getAscent() * 0.69999999999999996D) / 2D;
            tc.setX(x);
            tc.setY(y);
            x += tc.getWidth();
        }

    }
}
